package com.open.capacity.workflow.enums;

/**
 * 功能授权项目值类型
 */
public enum WFTransportTypes {

    /**
     * 同意
     */
    Agree(1),

    /**
     * 不同意
     */
    Disagree(2),

    /**
     * 超时
     */
    Overtime(3);


    private Integer code;

    WFTransportTypes(Integer code) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }


    public static WFTransportTypes getByCode(Integer code) {
        for (WFTransportTypes transactType : values()) {
            if (transactType.getCode() == code) {
                return transactType;
            }
        }
        return null;
    }
}
